<!-- ---------------popup------------------- -->
<style>
.ui-dialog-titlebar-close {
  visibility: hidden;
}
</style>
<script type="text/javascript">
	$("#btn-igorn").live('click', function(){
		$("#action-post").hide();
		$("#confirm-unaccept").dialog("open");
		return false;
	});
	$("#btn-cancel").live('click', function(){
		$("#action-post").show();
		$("#confirm-unaccept").dialog("close");
		return false;
	});
	$("#btn-confirm").live('click', function(){
		var comment = $('#comment-dialog').val();
		if (comment.trim() == "") {
			alert("Yêu cầu nhập lý do không tham dự.");
		}
		else {
			$("#unaccept").text(comment);
			$("#confirm-unaccept").dialog("close");
			$("#confirm-asign").submit();
			return false;
		}
	});
</script>
	<?php $this->beginWidget('zii.widgets.jui.CJuiDialog',array(
	    'id'=>'confirm-unaccept',
	    // additional javascript options for the dialog plugin
	    'options'=>array(
	        'title'			=> 'Lý do không tham dự',
	        'autoOpen'		=> false,
			'closeOnEscape' => false,
			'modal' 		=> true,
			'show'			=> array(
                'effect'=>'bounce',
                'duration'=>500,
            ),
        	'hide'=>array(
                'effect'=>'explode',
                'duration'=>500,
            ),
	    ),
	));
	?>
		<?php echo CHtml::textArea('comment-dialog','',array('id' => 'comment-dialog', 'rows'=>6, 'cols'=>90, 'class' => 'asign-comment')); ?>
		<?php echo CHtml::button('Xác nhận', array('name' => 'unaccept', 'class' => 'btn btn-default', 'id' => 'btn-confirm')); ?>
		<?php echo CHtml::button('Hủy', array('class' => 'btn btn-default', 'id' => 'btn-cancel')); ?>
	<?php $this->endWidget('zii.widgets.jui.CJuiDialog');?>